{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Stray birds of summer come to my window to sing and fly away.\n",
      "And yellow leaves of autumn which have no songs , flutter and fall there with a sign.\n",
      "O troupe of little vagrants of the world,leave your footprints in my wods.\n",
      "The world puts off its mask of vastness to its lover.\n",
      "It becomes small as one song ,as one kiss of the eternal.\n",
      "It is the tears of the earth that keep her smiles in bloom.\n",
      "The mighty desert is burning for the love of a blade of grass who shakes her head and laughs and flies away .\n",
      "If you shed tears when you miss the sun ,you also miss the stars.\n",
      "The sands in your way beg for your song and your movement, dancing water.Will you carry the burden of their lameness?\n",
      "Her wishful face haunts my dreams like the rain at night.\n",
      "Once we dreamt that we were strangers.\n",
      "If you shed tears when you miss the sun ,you also miss the stars.\n",
      "We wake up to find that we were dear to each other .\n",
      "Sorrow is hushed into peace in my heart like the evening among the silent trees.\n",
      "Some unseen fingers,like an idle breeze, are playing upon my heart the music of the ripples.\n",
      "“what language is thine,o sea?”\n",
      "“The language of eternal question?”\n",
      "“What language is thy answer,o sky?”\n",
      "“The language of eternal silence.”\n",
      "Listen,my heart,to the whispers of the world with which it makes love to you!\n",
      "The mestery of creation is like the darkness of night-it is great.Delusions of knowledge are like the fog of the morning.\n",
      "Do not seat your love upon a precipice because it is high.\n",
      "I sit at windown this morning where the world like a passer-by stops for a moment ,nods to me and goes.\n",
      "There little thoughts are the rustle of leaves ;they have their whisper of joy in my mind.\n",
      "What you are you do not see,what you see is your shadow.\n",
      "My wishes are fools,they shout across thy song ,my master.\n",
      "Let me but listen.\n",
      "I cannot choose the best.\n",
      "The best chooses me.\n",
      "They throw their shadows before them who carry their lantem on their back.\n",
      "That I exist is a perpetual surprise ehich is life.\n",
      "“We ,the rustling leaves,have a voice that answers the storms,but who are you so silent?”\n",
      "“I am a mere flowers.”\n",
      "Rest belongs to the work as the eyelids to the eyes.\n",
      "Man is a born child,his power is the power of growth.\n",
      "God expects answers for the flowers he sends us ,not for the sun and the earth.\n",
      "The light that plays ,like a naked child ,among the green leaves happyily knows not that man can lie.\n",
      "O beauty,find thyself in love ,not in the flattery of thy mirror.\n",
      "My heart beats her waves at the shore of the world and writes upon it her signature in tears with the words,”I love thee.”\n",
      "“moon ,for what do you wait?”\n",
      "“to salute the sun for whom I must make way.”\n",
      "The trees come up to my window like the yearning voice of the dumb earth.\n",
      "His own mornings are new surprises to god.\n",
      "Life find its weath by the claims of the world,and its worth by the claims of love.\n",
      "The dry river_bed finds no thanks for its past.\n",
      "The bird wishes it were a cloud..\n",
      "The cloud wishes it were a bird.\n",
      "The waterfall sings,”I find my song ,when I find my freedom.”\n",
      "I can not tell why this heart languishes in silence.\n",
      "It is for small needs it never asks,or knows or remembers.\n",
      "Woman ,when you move about in your household service yout limbs sing like a hill stream among its pebbles.\n",
      "The sun goes to cross the weastern sea,leaving its last salutation to the East.\n",
      "Do not blame your food because you have mo appetite.\n",
      "The trees,like the longings of the earth,stand a tiptoe to peep at the heaven.\n",
      "This longing is for the one who is felt in the dark,but not seen in the day.\n",
      "“You are the big drop of dew under the lotus leaf,I am the smaller one on its upper side.”said the dewdrop to the lake.\n",
      "The scabbard is content to be dull when it protects the keenness of the sword.\n",
      "In darknes the one appears as uniform;\n",
      "In the light the one appears as manifold.\n",
      "The great earth makes herself hospitable with the help of the frass whose wider circles move slowly among stars.\n",
      "Power said to the world.”you are mine?\n",
      "The world kept it prisoner in her throne.\n",
      "Love said to the world,”I am thine.”\n",
      "The world gave it the freedom of her house.\n",
      "The mist is like the earth’s desire.\n",
      "It hides the sun for whom she cries.\n",
      "Be still,my heart,these great trees are prayers.\n",
      "The noise of the moment scoffs at the music of the eternal.\n",
      "I think of other ages that floated upon the stream of lifw and love and death and are forgotten, and I feel the freedom of passing away.\n",
      "The sadness of my soul is her bride’s veil.\n",
      "It waits to be lifted in the night.\n",
      "Daath’s stamp gives value to the coin of life;making it possible to buy with life what is truly precious.\n",
      "The cloud stood humbly in a corner of the sky.\n",
      "The morning crowned it with splendour.\n",
      "The dust receives insult and in return offers her flowers.\n",
      "Bees sip honey from flowers and hum their thanks when they leave.\n",
      "The gaudy butterfly is sure that the flowers owe thanks to him.\n",
      "To be outspoken is easy when you do not wait to speak the complete truth.\n",
      "Asks the possible to the impossible.\n",
      "“where is your dwelling place?”\n",
      "“in the dreams of the impotent “comes the answer.\n",
      "If you shut your door to all errors,truth will be shut out.\n",
      "I hear some rustle of things behind my sadness of heart-I cannot see them.\n",
      "Leisure in its activity is work.\n",
      "The stillness of the sea stirs in waves.\n",
      "The leaf becomes flower when it loves.\n",
      "The flower becomes fruit when it worships.\n",
      "The sparrow is sorry for the peacock at the burden of its tail.\n",
      "Never be afraid of the moments-thus sings the voice of the everlasting.\n",
      "The hurricane seeks the shortest road by the no-road ,and suddenly ends its search in the nowhere.\n",
      "Take my wine in my owe cup,friend.\n",
      "It loses its wreath of foam ehen poured into that of others.\n",
      "The perfect decks itself in beauty for the love of the imperfect.\n",
      "God says to man,”I heal you therefore I hut ,love you therefore punish.”\n",
      "Thank the flame for its light,but do not forget the lampholder standing in the shade with constancy of patience.\n",
      "Tiny grass ,you steps are small,but you possess the earth under your tread.\n",
      "The infant flower opens its bud and cries,”dear world ,please do not fade.” \n",
      "By plucking her petals you do not gather the beauty of the flower.\n",
      "Silence will carry your voice like the nest that holds the sleeping birds.\n",
      "The great walks with the small without fear.\n",
      "The middling keeps aloof.\n",
      "The night opens the flowers in wecret and allows the day to get thanks.\n",
      "Power takes as ingratitude the writhing of its victims.\n",
      "When we rejoice in our fullness ,then we can part with our fruits with joy.\n",
      "The raindrops kissed the earth and whispered,”we are thy homesick children,mother,come back to thee from the heaven.”\n",
      "The cobweb pretends to catch dewdrops and catches files.\n",
      "Love!when you come with the burning lamp of pain in your hand,I can see your face and know you as bilss.\n",
      "“the leaned say that your linghts will one day be no more,”said the firefly to the stars.\n",
      "[('stray', 1), ('birds', 2), ('of', 53), ('summer', 1), ('come', 4), ('to', 33), ('my', 18), ('window', 2), ('sing', 2), ('and', 22), ('fly', 1), ('away', 3), ('', 170), ('yellow', 1), ('leaves', 4), ('autumn', 1), ('which', 2), ('have', 4), ('no', 3), ('songs', 1), ('flutter', 1), ('fall', 1), ('there', 2), ('with', 11), ('a', 15), ('sign', 1), ('o', 4), ('troupe', 1), ('little', 2), ('vagrants', 1), ('the', 150), ('world', 11), ('leave', 2), ('your', 15), ('footprints', 1), ('in', 28), ('wods', 1), ('puts', 1), ('off', 1), ('its', 15), ('mask', 1), ('vastness', 1), ('lover', 1), ('it', 19), ('becomes', 3), ('small', 4), ('as', 7), ('one', 7), ('song', 4), ('kiss', 1), ('eternal', 4), ('is', 25), ('tears', 4), ('earth', 7), ('that', 12), ('keep', 1), ('her', 10), ('smiles', 1), ('bloom', 1), ('mighty', 1), ('desert', 1), ('burning', 2), ('for', 14), ('love', 10), ('blade', 1), ('grass', 2), ('who', 4), ('shakes', 1), ('head', 1), ('laughs', 1), ('flies', 1), ('if', 3), ('you', 25), ('shed', 2), ('when', 10), ('miss', 4), ('sun', 6), ('also', 2), ('stars', 4), ('sands', 1), ('way', 2), ('beg', 1), ('movement', 1), ('dancing', 1), ('water', 1), ('will', 4), ('carry', 3), ('burden', 2), ('their', 6), ('lameness', 1), ('wishful', 1), ('face', 2), ('haunts', 1), ('dreams', 2), ('like', 12), ('rain', 1), ('at', 6), ('night', 3), ('once', 1), ('we', 8), ('dreamt', 1), ('were', 4), ('strangers', 1), ('wake', 1), ('up', 2), ('find', 5), ('dear', 2), ('each', 1), ('other', 2), ('sorrow', 1), ('hushed', 1), ('into', 2), ('peace', 1), ('heart', 6), ('evening', 1), ('among', 4), ('silent', 2), ('trees', 4), ('some', 2), ('unseen', 1), ('fingers', 1), ('an', 1), ('idle', 1), ('breeze', 1), ('are', 13), ('playing', 1), ('upon', 4), ('music', 2), ('ripples', 1), ('what', 6), ('language', 4), ('thine', 2), ('sea', 3), ('question', 1), ('thy', 4), ('answer', 2), ('sky', 2), ('silence', 3), ('listen', 2), ('whispers', 1), ('makes', 2), ('you!', 1), ('mestery', 1), ('creation', 1), ('darkness', 1), ('night-it', 1), ('great', 4), ('delusions', 1), ('knowledge', 1), ('fog', 1), ('morning', 3), ('do', 8), ('not', 12), ('seat', 1), ('precipice', 1), ('because', 2), ('high', 1), ('i', 17), ('sit', 1), ('windown', 1), ('this', 3), ('where', 2), ('passer-by', 1), ('stops', 1), ('moment', 2), ('nods', 1), ('me', 3), ('goes', 2), ('thoughts', 1), ('rustle', 2), (';they', 1), ('whisper', 1), ('joy', 2), ('mind', 1), ('see', 4), ('shadow', 1), ('wishes', 3), ('fools', 1), ('they', 3), ('shout', 1), ('across', 1), ('master', 1), ('let', 1), ('but', 5), ('cannot', 2), ('choose', 1), ('best', 2), ('chooses', 1), ('throw', 1), ('shadows', 1), ('before', 1), ('them', 2), ('lantem', 1), ('on', 2), ('back', 2), ('exist', 1), ('perpetual', 1), ('surprise', 1), ('ehich', 1), ('life', 3), ('rustling', 1), ('voice', 4), ('answers', 2), ('storms', 1), ('so', 1), ('am', 3), ('mere', 1), ('flowers', 6), ('rest', 1), ('belongs', 1), ('work', 2), ('eyelids', 1), ('eyes', 1), ('man', 3), ('born', 1), ('child', 2), ('his', 2), ('power', 4), ('growth', 1), ('god', 3), ('expects', 1), ('he', 1), ('sends', 1), ('us', 1), ('light', 3), ('plays', 1), ('naked', 1), ('green', 1), ('happyily', 1), ('knows', 2), ('can', 4), ('lie', 1), ('beauty', 3), ('thyself', 1), ('flattery', 1), ('mirror', 1), ('beats', 1), ('waves', 2), ('shore', 1), ('writes', 1), ('signature', 1), ('words', 1), ('thee', 2), ('moon', 1), ('wait', 2), ('salute', 1), ('whom', 2), ('must', 1), ('make', 1), ('yearning', 1), ('dumb', 1), ('own', 1), ('mornings', 1), ('new', 1), ('surprises', 1), ('weath', 1), ('by', 4), ('claims', 2), ('worth', 1), ('dry', 1), ('river_bed', 1), ('finds', 1), ('thanks', 4), ('past', 1), ('bird', 2), ('cloud', 3), ('waterfall', 1), ('sings', 2), ('freedom', 3), ('tell', 1), ('why', 1), ('languishes', 1), ('needs', 1), ('never', 2), ('asks', 2), ('or', 2), ('remembers', 1), ('woman', 1), ('move', 2), ('about', 1), ('household', 1), ('service', 1), ('yout', 1), ('limbs', 1), ('hill', 1), ('stream', 2), ('pebbles', 1), ('cross', 1), ('weastern', 1), ('leaving', 1), ('last', 1), ('salutation', 1), ('east', 1), ('blame', 1), ('food', 1), ('mo', 1), ('appetite', 1), ('longings', 1), ('stand', 1), ('tiptoe', 1), ('peep', 1), ('heaven', 2), ('longing', 1), ('felt', 1), ('dark', 1), ('seen', 1), ('day', 3), ('big', 1), ('drop', 1), ('dew', 1), ('under', 2), ('lotus', 1), ('leaf', 2), ('smaller', 1), ('upper', 1), ('side', 1), ('said', 4), ('dewdrop', 1), ('lake', 1), ('scabbard', 1), ('content', 1), ('be', 7), ('dull', 1), ('protects', 1), ('keenness', 1), ('sword', 1), ('darknes', 1), ('appears', 2), ('uniform;', 1), ('manifold', 1), ('herself', 1), ('hospitable', 1), ('help', 1), ('frass', 1), ('whose', 1), ('wider', 1), ('circles', 1), ('slowly', 1), ('mine', 1), ('kept', 1), ('prisoner', 1), ('throne', 1), ('gave', 1), ('house', 1), ('mist', 1), ('earth’s', 1), ('desire', 1), ('hides', 1), ('she', 1), ('cries', 2), ('still', 1), ('these', 1), ('prayers', 1), ('noise', 1), ('scoffs', 1), ('think', 1), ('ages', 1), ('floated', 1), ('lifw', 1), ('death', 1), ('forgotten', 1), ('feel', 1), ('passing', 1), ('sadness', 2), ('soul', 1), ('bride’s', 1), ('veil', 1), ('waits', 1), ('lifted', 1), ('daath’s', 1), ('stamp', 1), ('gives', 1), ('value', 1), ('coin', 1), ('life;making', 1), ('possible', 2), ('buy', 1), ('truly', 1), ('precious', 1), ('stood', 1), ('humbly', 1), ('corner', 1), ('crowned', 1), ('splendour', 1), ('dust', 1), ('receives', 1), ('insult', 1), ('return', 1), ('offers', 1), ('bees', 1), ('sip', 1), ('honey', 1), ('from', 2), ('hum', 1), ('gaudy', 1), ('butterfly', 1), ('sure', 1), ('owe', 2), ('him', 1), ('outspoken', 1), ('easy', 1), ('speak', 1), ('complete', 1), ('truth', 2), ('impossible', 1), ('dwelling', 1), ('place', 1), ('impotent', 1), ('comes', 1), ('shut', 2), ('door', 1), ('all', 1), ('errors', 1), ('out', 1), ('hear', 1), ('things', 1), ('behind', 1), ('heart-i', 1), ('leisure', 1), ('activity', 1), ('stillness', 1), ('stirs', 1), ('flower', 4), ('loves', 1), ('fruit', 1), ('worships', 1), ('sparrow', 1), ('sorry', 1), ('peacock', 1), ('tail', 1), ('afraid', 1), ('moments-thus', 1), ('everlasting', 1), ('hurricane', 1), ('seeks', 1), ('shortest', 1), ('road', 1), ('no-road', 1), ('suddenly', 1), ('ends', 1), ('search', 1), ('nowhere', 1), ('take', 1), ('wine', 1), ('cup', 1), ('friend', 1), ('loses', 1), ('wreath', 1), ('foam', 1), ('ehen', 1), ('poured', 1), ('others', 1), ('perfect', 1), ('decks', 1), ('itself', 1), ('imperfect', 1), ('says', 1), ('heal', 1), ('therefore', 2), ('hut', 1), ('punish', 1), ('thank', 1), ('flame', 1), ('forget', 1), ('lampholder', 1), ('standing', 1), ('shade', 1), ('constancy', 1), ('patience', 1), ('tiny', 1), ('steps', 1), ('possess', 1), ('tread', 1), ('infant', 1), ('opens', 2), ('bud', 1), ('please', 1), ('fade', 1), ('plucking', 1), ('petals', 1), ('gather', 1), ('nest', 1), ('holds', 1), ('sleeping', 1), ('walks', 1), ('without', 1), ('fear', 1), ('middling', 1), ('keeps', 1), ('aloof', 1), ('wecret', 1), ('allows', 1), ('get', 1), ('takes', 1), ('ingratitude', 1), ('writhing', 1), ('victims', 1), ('rejoice', 1), ('our', 2), ('fullness', 1), ('then', 1), ('part', 1), ('fruits', 1), ('raindrops', 1), ('kissed', 1), ('whispered', 1), ('homesick', 1), ('children', 1), ('mother', 1), ('cobweb', 1), ('pretends', 1), ('catch', 1), ('dewdrops', 1), ('catches', 1), ('files', 1), ('love!when', 1), ('lamp', 1), ('pain', 1), ('hand', 1), ('know', 1), ('bilss', 1), ('leaned', 1), ('say', 1), ('linghts', 1), ('more', 1), ('firefly', 1)]\n",
      "[('', 170), ('the', 150), ('of', 53), ('to', 33), ('in', 28), ('is', 25), ('you', 25), ('and', 22), ('it', 19), ('my', 18), ('i', 17), ('a', 15), ('your', 15), ('its', 15), ('for', 14), ('are', 13), ('that', 12), ('like', 12), ('not', 12), ('with', 11), ('world', 11), ('her', 10), ('love', 10), ('when', 10), ('we', 8), ('do', 8), ('as', 7), ('one', 7), ('earth', 7), ('be', 7), ('sun', 6), ('their', 6), ('at', 6), ('heart', 6), ('what', 6), ('flowers', 6), ('find', 5), ('but', 5), ('come', 4), ('leaves', 4), ('have', 4), ('o', 4), ('small', 4), ('song', 4), ('eternal', 4), ('tears', 4), ('who', 4), ('miss', 4), ('stars', 4), ('will', 4), ('were', 4), ('among', 4), ('trees', 4), ('upon', 4), ('language', 4), ('thy', 4), ('great', 4), ('see', 4), ('voice', 4), ('power', 4), ('can', 4), ('by', 4), ('thanks', 4), ('said', 4), ('flower', 4), ('away', 3), ('no', 3), ('becomes', 3), ('if', 3), ('carry', 3), ('night', 3), ('sea', 3), ('silence', 3), ('morning', 3), ('this', 3), ('me', 3), ('wishes', 3), ('they', 3), ('life', 3), ('am', 3), ('man', 3), ('god', 3), ('light', 3), ('beauty', 3), ('cloud', 3), ('freedom', 3), ('day', 3), ('birds', 2), ('window', 2), ('sing', 2), ('which', 2), ('there', 2), ('little', 2), ('leave', 2), ('burning', 2), ('grass', 2), ('shed', 2), ('also', 2), ('way', 2), ('burden', 2), ('face', 2), ('dreams', 2), ('up', 2), ('dear', 2), ('other', 2), ('into', 2), ('silent', 2), ('some', 2), ('music', 2), ('thine', 2), ('answer', 2), ('sky', 2), ('listen', 2), ('makes', 2), ('because', 2), ('where', 2), ('moment', 2), ('goes', 2), ('rustle', 2), ('joy', 2), ('cannot', 2), ('best', 2), ('them', 2), ('on', 2), ('back', 2), ('answers', 2), ('work', 2), ('child', 2), ('his', 2), ('knows', 2), ('waves', 2), ('thee', 2), ('wait', 2), ('whom', 2), ('claims', 2), ('bird', 2), ('sings', 2), ('never', 2), ('asks', 2), ('or', 2), ('move', 2), ('stream', 2), ('heaven', 2), ('under', 2), ('leaf', 2), ('appears', 2), ('cries', 2), ('sadness', 2), ('possible', 2), ('from', 2), ('owe', 2), ('truth', 2), ('shut', 2), ('therefore', 2), ('opens', 2), ('our', 2), ('stray', 1), ('summer', 1), ('fly', 1), ('yellow', 1), ('autumn', 1), ('songs', 1), ('flutter', 1), ('fall', 1), ('sign', 1), ('troupe', 1), ('vagrants', 1), ('footprints', 1), ('wods', 1), ('puts', 1), ('off', 1), ('mask', 1), ('vastness', 1), ('lover', 1), ('kiss', 1), ('keep', 1), ('smiles', 1), ('bloom', 1), ('mighty', 1), ('desert', 1), ('blade', 1), ('shakes', 1), ('head', 1), ('laughs', 1), ('flies', 1), ('sands', 1), ('beg', 1), ('movement', 1), ('dancing', 1), ('water', 1), ('lameness', 1), ('wishful', 1), ('haunts', 1), ('rain', 1), ('once', 1), ('dreamt', 1), ('strangers', 1), ('wake', 1), ('each', 1), ('sorrow', 1), ('hushed', 1), ('peace', 1), ('evening', 1), ('unseen', 1), ('fingers', 1), ('an', 1), ('idle', 1), ('breeze', 1), ('playing', 1), ('ripples', 1), ('question', 1), ('whispers', 1), ('you!', 1), ('mestery', 1), ('creation', 1), ('darkness', 1), ('night-it', 1), ('delusions', 1), ('knowledge', 1), ('fog', 1), ('seat', 1), ('precipice', 1), ('high', 1), ('sit', 1), ('windown', 1), ('passer-by', 1), ('stops', 1), ('nods', 1), ('thoughts', 1), (';they', 1), ('whisper', 1), ('mind', 1), ('shadow', 1), ('fools', 1), ('shout', 1), ('across', 1), ('master', 1), ('let', 1), ('choose', 1), ('chooses', 1), ('throw', 1), ('shadows', 1), ('before', 1), ('lantem', 1), ('exist', 1), ('perpetual', 1), ('surprise', 1), ('ehich', 1), ('rustling', 1), ('storms', 1), ('so', 1), ('mere', 1), ('rest', 1), ('belongs', 1), ('eyelids', 1), ('eyes', 1), ('born', 1), ('growth', 1), ('expects', 1), ('he', 1), ('sends', 1), ('us', 1), ('plays', 1), ('naked', 1), ('green', 1), ('happyily', 1), ('lie', 1), ('thyself', 1), ('flattery', 1), ('mirror', 1), ('beats', 1), ('shore', 1), ('writes', 1), ('signature', 1), ('words', 1), ('moon', 1), ('salute', 1), ('must', 1), ('make', 1), ('yearning', 1), ('dumb', 1), ('own', 1), ('mornings', 1), ('new', 1), ('surprises', 1), ('weath', 1), ('worth', 1), ('dry', 1), ('river_bed', 1), ('finds', 1), ('past', 1), ('waterfall', 1), ('tell', 1), ('why', 1), ('languishes', 1), ('needs', 1), ('remembers', 1), ('woman', 1), ('about', 1), ('household', 1), ('service', 1), ('yout', 1), ('limbs', 1), ('hill', 1), ('pebbles', 1), ('cross', 1), ('weastern', 1), ('leaving', 1), ('last', 1), ('salutation', 1), ('east', 1), ('blame', 1), ('food', 1), ('mo', 1), ('appetite', 1), ('longings', 1), ('stand', 1), ('tiptoe', 1), ('peep', 1), ('longing', 1), ('felt', 1), ('dark', 1), ('seen', 1), ('big', 1), ('drop', 1), ('dew', 1), ('lotus', 1), ('smaller', 1), ('upper', 1), ('side', 1), ('dewdrop', 1), ('lake', 1), ('scabbard', 1), ('content', 1), ('dull', 1), ('protects', 1), ('keenness', 1), ('sword', 1), ('darknes', 1), ('uniform;', 1), ('manifold', 1), ('herself', 1), ('hospitable', 1), ('help', 1), ('frass', 1), ('whose', 1), ('wider', 1), ('circles', 1), ('slowly', 1), ('mine', 1), ('kept', 1), ('prisoner', 1), ('throne', 1), ('gave', 1), ('house', 1), ('mist', 1), ('earth’s', 1), ('desire', 1), ('hides', 1), ('she', 1), ('still', 1), ('these', 1), ('prayers', 1), ('noise', 1), ('scoffs', 1), ('think', 1), ('ages', 1), ('floated', 1), ('lifw', 1), ('death', 1), ('forgotten', 1), ('feel', 1), ('passing', 1), ('soul', 1), ('bride’s', 1), ('veil', 1), ('waits', 1), ('lifted', 1), ('daath’s', 1), ('stamp', 1), ('gives', 1), ('value', 1), ('coin', 1), ('life;making', 1), ('buy', 1), ('truly', 1), ('precious', 1), ('stood', 1), ('humbly', 1), ('corner', 1), ('crowned', 1), ('splendour', 1), ('dust', 1), ('receives', 1), ('insult', 1), ('return', 1), ('offers', 1), ('bees', 1), ('sip', 1), ('honey', 1), ('hum', 1), ('gaudy', 1), ('butterfly', 1), ('sure', 1), ('him', 1), ('outspoken', 1), ('easy', 1), ('speak', 1), ('complete', 1), ('impossible', 1), ('dwelling', 1), ('place', 1), ('impotent', 1), ('comes', 1), ('door', 1), ('all', 1), ('errors', 1), ('out', 1), ('hear', 1), ('things', 1), ('behind', 1), ('heart-i', 1), ('leisure', 1), ('activity', 1), ('stillness', 1), ('stirs', 1), ('loves', 1), ('fruit', 1), ('worships', 1), ('sparrow', 1), ('sorry', 1), ('peacock', 1), ('tail', 1), ('afraid', 1), ('moments-thus', 1), ('everlasting', 1), ('hurricane', 1), ('seeks', 1), ('shortest', 1), ('road', 1), ('no-road', 1), ('suddenly', 1), ('ends', 1), ('search', 1), ('nowhere', 1), ('take', 1), ('wine', 1), ('cup', 1), ('friend', 1), ('loses', 1), ('wreath', 1), ('foam', 1), ('ehen', 1), ('poured', 1), ('others', 1), ('perfect', 1), ('decks', 1), ('itself', 1), ('imperfect', 1), ('says', 1), ('heal', 1), ('hut', 1), ('punish', 1), ('thank', 1), ('flame', 1), ('forget', 1), ('lampholder', 1), ('standing', 1), ('shade', 1), ('constancy', 1), ('patience', 1), ('tiny', 1), ('steps', 1), ('possess', 1), ('tread', 1), ('infant', 1), ('bud', 1), ('please', 1), ('fade', 1), ('plucking', 1), ('petals', 1), ('gather', 1), ('nest', 1), ('holds', 1), ('sleeping', 1), ('walks', 1), ('without', 1), ('fear', 1), ('middling', 1), ('keeps', 1), ('aloof', 1), ('wecret', 1), ('allows', 1), ('get', 1), ('takes', 1), ('ingratitude', 1), ('writhing', 1), ('victims', 1), ('rejoice', 1), ('fullness', 1), ('then', 1), ('part', 1), ('fruits', 1), ('raindrops', 1), ('kissed', 1), ('whispered', 1), ('homesick', 1), ('children', 1), ('mother', 1), ('cobweb', 1), ('pretends', 1), ('catch', 1), ('dewdrops', 1), ('catches', 1), ('files', 1), ('love!when', 1), ('lamp', 1), ('pain', 1), ('hand', 1), ('know', 1), ('bilss', 1), ('leaned', 1), ('say', 1), ('linghts', 1), ('more', 1), ('firefly', 1)]\n"
     ]
    }
   ],
   "source": [
    "# 打开文件 并读取内容\n",
    "s = open(\"d:\\\\birds.txt\",'r').read()\n",
    "print(s)\n",
    "# 全部变成小写\n",
    "s = s.lower()\n",
    "# 替换符号为空格\n",
    "for ch in \"\"\"?.*“”,\"'\\n\"\"\":\n",
    "    s = s.replace(ch,\" \")\n",
    "# 用空格分割\n",
    "ls = s.split(\" \")\n",
    "# 统计\n",
    "d = {}\n",
    "for word in ls:\n",
    "    d[word] = d.get(word,0)+1\n",
    "# 变成列表\n",
    "ls = list(d.items())\n",
    "print(ls)\n",
    "# 排序\n",
    "ls.sort(key=lambda x:x[1],reverse=True)\n",
    "print(ls)\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "base",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
